import 'package:architecture/os_size.dart';
import 'package:flutter/material.dart';
import 'package:flutter_quill/flutter_quill.dart';
import 'package:get/get.dart';

import 'quill_controller.dart';

class QuillPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return GetBuilder<UseQuillController>(
        init: UseQuillController(),
        builder: (controller) {
          return Scaffold(
            appBar: AppBar(title: Text('富文本')),
            body: Column(
              children: [
                Row(
                  children: [
                    Container(
                        width: windowWidth * 0.5,
                        height: windowHeight * 0.8,
                        margin: EdgeInsets.all(10),
                        padding: EdgeInsets.all(5),
                        decoration: BoxDecoration(
                          border: Border.all(color: Colors.grey),
                        ),
                        child: Column(
                          children: [
                            // QuillSimpleToolbar(
                            //   controller: controller.quillController,
                            //   configurations:
                            //       QuillSimpleToolbarConfigurations(),
                            // ),
                            // Expanded(
                            //   child: QuillEditor.basic(
                            //     controller: controller.quillController,
                            //     configurations: QuillEditorConfigurations(),
                            //   ),
                            // )
                          ],
                        ))
                  ],
                )
              ],
            ),
          );
        });
  }
}
